SETRATE <resource name>, <expression>, <unit #>
SETRATE Operator, 25, 3
Allows you to define the regular rate of cost for resources contained in a model. If you have already defined the regular rate in the Cost module, this statement will override that rate. You can use SetRate to set different rates for each unit of a resource.
Initialization logic.
<resource name>
The name of the resource whose rate you wish to set.
<expression>
The rate assigned to the resource.
<unit #>
The unit number of the resource. Where multiple instances of a resource exist, you must specify which instance of the resource to use (e.g., Tech1, Tech2, Tech3, etc.). The keyword ALL may be used to indicate all instances of a resource.
Please Note: SETRATE uses the time units defined for the model. (By default, SETRATE uses hours.)
The logic below displays how you can uniquely assign the regular rate for each unit of a resource, Operator. Operator has three units, meaning that each unit can perform the same task. However, each of the three Operators has a different hourly rate. We set these rates in the Initialization logic using the following:
See Also
GETCOST, GETRESRATE(), INCENTCOST, INCLOCCOST, and INCRESCOST.
![]() |
© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |